package kevin.socketdemo;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class SocketHanndler implements InvocationHandler {


    //目标对象
    private  Object target;


    public SocketHanndler(Object target) {
        this.target = target;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {



         return  method.invoke(target,args);
    }
}

